package com.gmail.bogatyr.alexander.somint.controller;

import org.springframework.web.servlet.ModelAndView;

/**
 *
 * @author Alexander
 */
public class BaseController {

    public static final String DATA = "data";
    public static final String INFO = "info";
    public static final String ERROR = "errorInfo";
    public static final String SUCCESS = "success";

    public ModelAndView createModelAndJsonView() {

        return new ModelAndView("index").addObject("success", true);
    }

    public ModelAndView createFailModelAndJsonView() {
        return new ModelAndView("index").addObject("success", false);
    }
}
